package com.flydog.taskManager.repository;

import com.flydog.taskManager.entity.user.AdminUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface AdminUserRepository extends JpaRepository<AdminUser, Long> {
    Optional<AdminUser> findByName(String name);

    Page<AdminUser> findByNameLike(String name, Pageable pageable);

}